package com.harth.blemultiplatform.ble.core


/**
 * PHY coded option.
 *
 * Coded PHY uses 2 modes, S=2 and S=8. In the S=2 mode, 2 symbols represent 1 bit, therefore the
 * data rate is 500 kbps. While in the S=8 mode, 8 symbols are used to represent a bit and the data
 * rate becomes 125 kbps.
 */
enum class PhyOption {

    /**
     * No preferred coding when transmitting on the LE Coded PHY.
     */
    NO_PREFERRED,

    /**
     * Prefer the S=2 coding to be used when transmitting on the LE Coded PHY.
     */
    S2,

    /**
     * Prefer the S=8 coding to be used when transmitting on the LE Coded PHY.
     */
    S8
}
